<?php
class Admin_Form_AddCountry extends Apps_Form {
	public function init() {
		$name = new Zend_Form_Element_Text(
				'name',
				array('label' 		=> 'Name (Vi)',
						'filters'		=> array('StringTrim')));

		$enName = new Zend_Form_Element_Text(
				'en_name',
				array('label' 		=> 'Name (En)',
					  'required'	=> true,
						'filters'		=> array('StringTrim')));

		$sortingNumber = new Zend_Form_Element_Text(
		        'sorting_number',
		        array('label'      => 'Sorting number',
		                'class'      => 'input-mini'));

		$description = new Zend_Form_Element_Textarea(
		        'description',
		        array('label' => 'Description',
		                'cols'	=> 80));

		$this->addElement($enName)
			 ->addElement($name)
			 ->addElement($sortingNumber)
			 ->addElement($description);
		$this->setLegend('Add New');
		$this->addActionGroup()
			 ->makeup();
	}
}